import sys

from PyQt5.QtWidgets import QWidget, QApplication


class Windows(QWidget):
    def __init__(self):
        super(Windows, self).__init__()
        self.setWindowTitle("QWidget学习")
        self.resize(500, 500)
        self.setup_ui()

    def setup_ui(self):
        pass

if __name__ == '__main__':
    app = QApplication(sys.argv)
    windows = Windows()
    windows.show()

    sys.exit(app.exec_())
